import layout from '@/layout'
export default {
  path: '/employee',
  name: 'employee',
  component: layout,
  children: [
    {
      path: '', // 默认子路由  /employee
      name: 'employee',
      component: () => import('@/views/employee'),
      meta: {
        title: '员工',
        icon: 'people'
      }
    }, {
      //  既可以匹配 编辑 /employee/detail/10  也可以匹配 新增 /employee/detail
      path: 'detail', //  '/employee/detail'
      name: 'detail',
      component: () => import('@/views/employee/detail'),
      hidden: true, // 不在导航菜单中展示
      meta: {
        title: '添加员工' // 让面包屑中有标题
      }
    },
    {
      //  既可以匹配 编辑 /employee/detail/10  也可以匹配 新增 /employee/detail
      path: 'detail/:id', //  '/employee/detail'
      name: 'detail',
      component: () => import('@/views/employee/detail'),
      hidden: true, // 不在导航菜单中展示
      meta: {
        title: '编辑员工' // 让面包屑中有标题
      }
    }
  ]
}
